package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.ProductAttrValueEntity;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author fangdada
 * @email 1819675707@qq.com
 * @date 2021-04-30 21:16:24
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

	void saveProductAttr(List<ProductAttrValueEntity> collect);

	/**
	 * 获取spu规格
	 * @author fd
	 * @date 2021/5/26 14:55
	 * @param spuId
	 * @return
	 */
	List<ProductAttrValueEntity> baseAttrlistforspu(Long spuId);

	/**
	 * 更新这个spuId对应的所有属性
	 * @author fd
	 * @date 2021/5/26 15:09
	 * @param spuId
	 * @param productAttrValueEntityList
	 */
	void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> productAttrValueEntityList);
}

